package com.mongodb.mongodbboot.model;

import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * 用户 DO
 */
@Document(collection = "UserIncr")
public class UserDONoID {

    /**
     * 用户信息
     */

    /**
     * 账号
     */
    private String username;
    /**
     * 密码
     */
    private String password;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 用户信息
     */
    private Profile profile;



    @Override
    public String toString() {
        return "UserDONoID{" +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", createTime=" + createTime +
                ", profile=" + profile +
                '}';
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setProfile(Profile profile) {
        this.profile = profile;
    }

    public String getUsername() {
        return username;
    }

    public String getPassword() {
        return password;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public Profile getProfile() {
        return profile;
    }
}
